<?php /* Smarty version Smarty-3.1.6, created on 2018-06-02 01:46:16
         compiled from "D:/phpStudy/PHPTutorial/WWW/myshop/Home/View\Order\orders.html" */ ?>
<?php /*%%SmartyHeaderCode:1864896285affdbb80e6a24-19757476%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a6edfe8582fd44acec42c33bebd8a4a1e3ed7298' => 
    array (
      0 => 'D:/phpStudy/PHPTutorial/WWW/myshop/Home/View\\Order\\orders.html',
      1 => 1527875175,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1864896285affdbb80e6a24-19757476',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_5affdbb81dc63',
  'variables' => 
  array (
    'orders' => 0,
    'v' => 0,
    'gv' => 0,
    'address' => 0,
    'total' => 0,
    'pagelist' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5affdbb81dc63')) {function content_5affdbb81dc63($_smarty_tpl) {?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>积分商城</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="stylesheet" href="<?php echo @PUBLIC_PATH;?>
css/amazeui.min.css"/>
<link rel="stylesheet" href="<?php echo @IMAGES_PATH;?>
style.css"/>
<script src="<?php echo @PUBLIC_PATH;?>
js/jquery.min.js"></script>
<script src="<?php echo @PUBLIC_PATH;?>
js/amazeui.min.js"></script>
<style type="text/css">
/*page*/
.pagin{ position:relative;margin-top:10px;padding:0 12px;height: 31px;}
.pagin .blue{ color:#056dae;font-style:normal;}
.pagin .paginList{ position:absolute;right:12px;top:0;margin-top: 0px;}
.pagin .paginList .paginItem{ float:left;}
.pagin .paginList .paginItem a{ float:left;width:31px;height:28px;border:1px solid #DDD !important;font-size: 9pt;text-align:center;line-height:30px;border-left:none;color:#3399d5;}
.pagin .paginList .paginItem:first-child a{ border-left:1px solid #DDD;}
.pagin .paginList .paginItem:first-child a{ border-bottom-left-radius:5px;border-top-left-radius:5px;}
.pagin .paginList .paginItem:last-child a{ border-bottom-right-radius:5px;border-top-right-radius:5px;}
.pagin .paginList .paginItem.current,.pagin .paginList .paginItem.current a{ background:#f5f5f5; cursor:default;color:#737373;}
.pagin .paginList .paginItem:hover{ background:#f5f5f5;}
.pagin .paginList .paginItem.more,.pagin .paginList .paginItem.more a:hover{ cursor:default;}
.pagin .paginList .paginItem.more:hover{ background:#FFF;}
.pagin .paginList .paginItem.more a{ color:#737373;font-size: 9pt;}
.pagin .paginList .paginItem input{
	    font-size: 9pt;
    border: 0;
    margin: 0;
    padding: 0;
}
li {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}
.btn {
    width: 137px;
    height: 35px;
    background: url(<?php echo @ADMIN_IMAGES_PATH;?>
btnbg.png) no-repeat;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    border: 0;
    margin: 0;
    padding: 0;
    margin-left: 2px;
}

</style>
</head>

<body>
<div class="container">
	<!--引入头文件-->
	<?php echo $_smarty_tpl->getSubTemplate ("../header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

	<script>$('.title-link').text("我的订单")</script>
	
    <div class="am-cf cart-panel" style="min-height: 600px;">
    	<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['orders']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
    	
    	<div class="withdrawals-panel">
        	<p class="groupby-t-p"><span class="am-fr"><?php echo date("Y-m-d H:i:s",$_smarty_tpl->tpl_vars['v']->value['create_time']);?>
</span>订单号：<?php echo $_smarty_tpl->tpl_vars['v']->value['uid'];?>
</p>
            <hr  class="am-divider am-divider-default am-cf"/>
            <?php  $_smarty_tpl->tpl_vars['gv'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gv']->_loop = false;
 $_smarty_tpl->tpl_vars['gk'] = new Smarty_Variable;
 $_from = json_decode($_smarty_tpl->tpl_vars['v']->value['goods'],true); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['gv']->key => $_smarty_tpl->tpl_vars['gv']->value){
$_smarty_tpl->tpl_vars['gv']->_loop = true;
 $_smarty_tpl->tpl_vars['gk']->value = $_smarty_tpl->tpl_vars['gv']->key;
?>
            <a href="<?php echo @__MODULE__;?>
/IntegralGoods/goodsdetail/id/<?php echo $_smarty_tpl->tpl_vars['gv']->value['good']['id'];?>
">
            <div style="width: 100%;height: 215px; display: block;position: relative;">
            	<div class="groupby-img-panle" style="position: absolute;left: 0;"><img src="<?php echo $_smarty_tpl->tpl_vars['gv']->value['good']['main_img'];?>
" class="am-img-responsive" /></div>
            	<div class="groupby-info-panle">
            		<h3><?php echo $_smarty_tpl->tpl_vars['gv']->value['good']['name'];?>
</h3>
            	    <p>价格：<span class="red2 bold"><?php echo $_smarty_tpl->tpl_vars['gv']->value['good']['price'];?>
</span> 积分</p>
            	    <p>数量：<?php echo $_smarty_tpl->tpl_vars['gv']->value['quantity'];?>
</p>
            	    <?php $_smarty_tpl->tpl_vars['address'] = new Smarty_variable(json_decode($_smarty_tpl->tpl_vars['v']->value['address'],true), null, 0);?>
            	    <p>收货地址:<i class="am-icon-user"></i><?php echo $_smarty_tpl->tpl_vars['address']->value['name'];?>
<i class="am-icon-phone" style="margin-left: 30px;"></i><?php echo $_smarty_tpl->tpl_vars['address']->value['phone'];?>
</p>
            	    <p><?php echo $_smarty_tpl->tpl_vars['address']->value['province'];?>
<?php echo $_smarty_tpl->tpl_vars['address']->value['city'];?>
<?php echo $_smarty_tpl->tpl_vars['address']->value['town'];?>
<?php echo $_smarty_tpl->tpl_vars['address']->value['detail'];?>
</p>
            	    <?php if ($_smarty_tpl->tpl_vars['v']->value['status']==3){?>
		        		<p style="float: right;"><a href="<?php echo @__CONTROLLER__;?>
/tocomment/uid/<?php echo $_smarty_tpl->tpl_vars['v']->value['uid'];?>
/goods_uid/<?php echo $_smarty_tpl->tpl_vars['gv']->value['good']['id'];?>
" class="am-btn am-btn-primary am-btn-xs am-btn-success am-radius" style="background-color: lightskyblue;border-color: lightskyblue;">去评价</a> </p>
		        	<?php }?>
            	</div>
            	
            </div>
            </a>
            <?php } ?>
            
            
            <!--<p style="float: right;">状态：<span class="am-text-success">已付款</span></p>-->
            <?php if ($_smarty_tpl->tpl_vars['v']->value['status']==1){?>
            <p style="float: right;"><a class="am-btn am-btn-primary am-btn-xs am-btn-success am-radius">待发货</a><a href="<?php echo @__CONTROLLER__;?>
/torefund/uid/<?php echo $_smarty_tpl->tpl_vars['v']->value['uid'];?>
" class="am-btn am-btn-primary am-btn-xs am-btn-warning am-radius" style="margin-left: 10px;margin-right: 10px;">申请退款</a></p>
        	<?php }elseif($_smarty_tpl->tpl_vars['v']->value['status']==2){?>
        	<p style="float: right;">快递信息:<?php echo $_smarty_tpl->tpl_vars['v']->value['delivery_name'];?>
<?php echo $_smarty_tpl->tpl_vars['v']->value['delivery_id'];?>
 <a data-uid="<?php echo $_smarty_tpl->tpl_vars['v']->value['uid'];?>
" class="am-btn am-btn-primary am-btn-xs am-btn-success am-radius receivegoods" style="background-color: orange;border-color: orange;">确认收货</a> </p>
        	<?php }elseif($_smarty_tpl->tpl_vars['v']->value['status']==4){?>
        	<p style="float: right;"><a class="am-btn am-btn-primary am-btn-xs am-btn-danger am-radius" >申请退款中</a> </p>
        	<?php }elseif($_smarty_tpl->tpl_vars['v']->value['status']==5){?>
        	<p style="float: right;"><a class="am-btn am-btn-primary am-btn-xs am-btn-danger am-radius" >商家拒绝退款</a> </p>
        	<?php }elseif($_smarty_tpl->tpl_vars['v']->value['status']==6){?>
        	<p style="float: right;"><a class="am-btn am-btn-primary am-btn-xs am-btn-success am-radius" style="background-color: lightskyblue;border-color: lightskyblue;">已完成</a> </p>
        	<?php }elseif($_smarty_tpl->tpl_vars['v']->value['status']==7){?>
        	<p style="float: right;"><a class="am-btn am-btn-primary am-btn-xs am-btn-danger am-radius" >已退款</a> </p>
        	<?php }?>
    	</div>
        <?php } ?>
       
		<!--<ul class="am-pagination am-pagination-centered">
          <li class="am-disabled"><a href="#">&laquo;</a></li>
          <li class="am-active"><a href="#">1</a></li>
          <li><a href="#">2</a></li>
          <li><a href="#">3</a></li>
          <li><a href="#">4</a></li>
          <li><a href="#">5</a></li>
          <li><a href="#">&raquo;</a></li>
        </ul>-->
        <div class="pagin">
    	<div class="message">共<i class="blue"><?php echo $_smarty_tpl->tpl_vars['total']->value;?>
</i>条记录，每页显示&nbsp;<i class="blue">10&nbsp;</i>条</div>
        <ul class="paginList">
        	<?php echo $_smarty_tpl->tpl_vars['pagelist']->value;?>

        </ul>
    </div>
    </div>
    
    <footer data-am-widget="footer" class="am-footer am-footer-default" data-am-footer="{  }">
        <hr data-am-widget="divider" style="" class="am-divider am-divider-default"/>
      <div class="am-footer-miscs ">
        <p>CopyRight©2014 AllMobilize Inc.</p>
        <p>京ICP备13033158</p>
      </div>
    </footer>
    <!--底部-->
    <?php echo $_smarty_tpl->getSubTemplate ("../footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

</div>
    <script type="text/javascript">
    	$('.receivegoods').click(function(){
    		//alert($(this).data('uid'))
    		if(confirm("您确定收货吗？")){
    			var data={
    			uid:$(this).data('uid'),
    			}
	    		$.post("<?php echo @__CONTROLLER__;?>
/receivegoods", data, function(ret){
					console.log(ret);
					if(ret.errorcode){
						alert(ret.error);
					}else{
						window.location.reload();
					}
				})
    		}
    	})
    </script>
</body>
</html>
<?php }} ?>